package com.hhsjdesign.test;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.hhsjdesign.headerpullrefresh.R;
import com.hhsjdesign.test.act.ListViewActivity;
import com.hhsjdesign.test.act.RecyclerViewActivity;
import com.hhsjdesign.test.act.ScrollViewActivity;
import com.hhsjdesign.test.act.ViewPagerSample;
import com.hhsjtest.videoplayer.VideoActivity;

public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.test).setOnClickListener(view -> startActivity(new Intent(this, ViewPagerSample.class)));
        findViewById(R.id.test2).setOnClickListener(view -> startActivity(new Intent(this, ScrollViewActivity.class)));
        findViewById(R.id.test3).setOnClickListener(view -> startActivity(new Intent(this, ListViewActivity.class)));
        findViewById(R.id.test4).setOnClickListener(view -> startActivity(new Intent(this, RecyclerViewActivity.class)));
        findViewById(R.id.test5).setOnClickListener(view -> startActivity(new Intent(this, TestScrollListActivity.class)));
        findViewById(R.id.test6).setOnClickListener(view -> startActivity(new Intent(this, TestIntercept.class)));
        findViewById(R.id.test7).setOnClickListener(view -> startActivity(new Intent(this, TestCancel.class)));
        findViewById(R.id.test8).setOnClickListener(view -> startActivity(new Intent(this, VideoActivity.class)));




//        getSupportFragmentManager()
//                .beginTransaction()
//                .replace(R.id.content, ListFragment.newInstance("nihao", 20))
//                .commitNow();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }
}
